﻿using Beryl.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Description;

namespace Beryl
{
    /// <summary>
    /// CuttingStart 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class CuttingStart : System.Web.Services.WebService
    {

        [WebMethod(Description = "查询裁切单")]
        public string[] selectBarCode(string barcode, string Data)
        {
            List<string> list = new List<string>();
            list.Add(Model.CuttingStart.Instance.selectbarCode(barcode));
            return list.ToArray();
        }

        [WebMethod(Description = "查找刀具信息")]
        public string[] selectgetKn(string para, string Data)
        {
            List<string> list = new List<string>();
            list.Add(Model.CuttingStart.Instance.selectgetKn(para));
            return list.ToArray();
        }

        [WebMethod(Description = "裁切开工记录提交")]
        public string[] Summit(string summit, string Data)
        {
            List<string> list = new List<string>();
            list.Add(Model.CuttingStart.Instance.summit(summit));
            return list.ToArray();
        }
    }
}
